#ifndef PLAYER_H
#define PLAYER_H

#include <string>

#include "Jet.h"
#include "Track.h"

enum PlayerType
{
    HUMAN = 0,
    COMPUTER = 1
};
class Player
{
    public:
        virtual ~Player(){}
        inline Jet* GetJet()
        {
            return m_jet;
        }
        inline unsigned int GetType()
        {
            return m_type;
        }
        inline std::string& GetName()
        {
            return m_name;
        }
        void ChooseJet(Jet* jet);
        virtual void ChooseTrack(Track* track)
        {
            m_track = track;
        }
        void SetName(const std::string& name);
        void SetAvatar(std::string& file);
        void Update(float timedelta);
        void SetRank(unsigned int rank);
        unsigned int GetRank();
    protected:
        Jet *m_jet;
        Track* m_track;
        Ogre::SceneNode *m_root;
        std::string m_name;
        std::string m_avatar;

        int m_points;
        unsigned int m_rank;
        unsigned int m_type;
        bool m_dead;
    private:
};

#endif // PLAYER_H
